#ifndef SINGLE
//  An adapted ObjectSpace example for use with SGI STL

#include <iostream.h>
#include <multiset.h>
#include <algo.h>

#ifdef MAIN
#define mset4_test main
#endif
#endif
int mset4_test(int, char**)
{
  cout<<"Results of mset4_test:"<<endl;
#ifndef ACORN_CFRONT
int array [] = { 3, 6, 1, 2, 3, 2, 6, 7, 9 };
#else
static int array [] = { 3, 6, 1, 2, 3, 2, 6, 7, 9 };
#endif

  typedef multiset<int, less<int> > mset;
  mset s(array, array + 9);

#ifndef ACORN_CFRONT
  pair<mset::const_iterator, mset::const_iterator> p = s.equal_range(3);
#else
  pair<multiset_const_iterator<int, less<int> >, multiset_const_iterator<int, less<int> > > p = s.equal_range(3);
#endif

  cout << "lower bound = " << *(p.first) << endl;
  cout << "upper bound = " << *(p.second) << endl;
  return 0;
}
